//
//  VitalityCell.m
//  DefendHealth
//
//  Created by UNOHACHA on 17/2/21.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "VitalityCell.h"

@implementation VitalityCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        UILabel * titNameL = [ReduceCode creatLabelWithFrame:CGRectMake(12, (60-20)/2,kScreenWidth/3, 20) title:@"每日点赞" titleColor:UIColorFromRGB(0x333333) font:20 textAlignment:NSTextAlignmentLeft];
        [self.contentView addSubview:titNameL];
        
        UILabel * connectL = [ReduceCode creatLabelWithFrame:CGRectMake(WindowWidth-65-10-50, titNameL.y, 50, 20) title:@"+10" titleColor:UIColorFromRGB(0x333333) font:16 textAlignment:NSTextAlignmentRight];
        [self.contentView addSubview:connectL];
  
       
        
        UIButton * Get = [UIButton creatBtnWithFrame:CGRectMake(WindowWidth-65,titNameL.y ,55, 20) btnTitle:@"获取" btnTitleColor:kWhiteColor btnTitleFont:14 btnTagPrice:0 btnSetImage:nil btnBackgroundColor:UIColorFromRGB(0x96969696) isCorner:YES action:^(UIButton *button) {
            
        }];
        Get.layer.cornerRadius = 10;
        [self.contentView addSubview:Get];
        
        
        [ToolUtil createLine:0 superView:self.contentView lift:0 width:kScreenWidth hight:1 color:kLineColor];
    }
    
    return self;
}

@end
